{template 'common/header'}
<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>
  <ul class="nav nav-tabs">
    <li {if $opp == 'setup'}class="active"{/if}><a href="{php echo $this->createWebUrl('setup');}">系统基本设置</a></li>
    <!-- <li {if $opp == 'message'}class="active"{/if}><a href="{php echo $this->createWebUrl('message');}">模板消息设置</a></li> -->
    <!-- <li {if $opp == 'tabbar'}class="active"{/if}><a href="{php echo $this->createWebUrl('tabbar');}">底部菜单<span style="color: red">(beta)</span>设置</a></li> -->
  </ul>
</div>
<div class="main">
  <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">

    <input type="hidden" name="id" value="{$deat['id']}" />

    <div class="panel panel-default">

      <div class="panel-heading">

        基本设置

      </div>

      <div class="panel-body">


        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-3 control-label">底部版权</label>
          <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
            <input type="text" id='copyright' name="copyright" class="form-control" value="{$deat['copyright']}" />
          </div>
        </div>

        <div class="form-group">
          <label class="col-xs-12 col-sm-4 col-md-3 control-label">联系客服电话:</label>
          <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
            <input type="text" id="systel" name="systel"  class="form-control" value="{$deat['systel']}"/>
          </div>
        </div>
        <div class="form-group hidden">
          <label class="col-xs-12 col-sm-4 col-md-3 control-label">前台管理会员ID</label>
          <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
            <input type="text" id="sysopenid" name="sysopenid"  class="form-control" value="{$deat['sysopenid']}"/>
            <div class="help-block">名片管理,复制名片OPENID到此，此名片所有人为系统总管理，目前只支持通讯录管理。 </div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-4 col-md-3 control-label">腾讯地图开发密钥（key）</label>
          <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
            <input type="text" id="apikey" name="apikey"  class="form-control" value="{$deat['apikey']}"/>
            <div class="help-block"><a href="http://lbs.qq.com/" target="_blank"><span style="color: red">点击注册腾讯地图开发密钥（key）类型（移动端）</span></a>小程序服务器域名加上（apis.map.qq.com） </div>
          </div>
        </div>
        <div class="hidden" style="display:none">
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">阿里云API市场AppCode</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="AppCode" name="AppCode"  class="form-control" value="{$deat['AppCode']}"/>
              <div class="help-block"><a href="https://market.aliyun.com/?spm=5176.730005.584769.1.IUZVlX" target="_blank"><span style="color: red">点击打开页面，搜索名片识别</span></a></div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">选择服务商</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <label class="radio-inline"><input type="radio"  name="AppCodek" value="0" {if $deat['AppCodek'] == 0|| $deat['AppCodek']}checked{/if}>汉王云-名片识别-服务商：汉王科技股份有限公司</label>
              <label class="radio-inline"><input type="radio"  name="AppCodek" value="1" {if $deat['AppCodek'] == 1 }checked{/if}>印刷文字识别-名片识别-服务商：阿里云计算有限公司</label>
              <label class="radio-inline"><input type="radio"  name="AppCodek" value="2" {if $deat['AppCodek'] == 2 }checked{/if}>名片识别-服务商：杭州网尚科技有限公司</label>
              <label class="radio-inline"><input type="radio"  name="AppCodek" value="3" {if $deat['AppCodek'] == 3 }checked{/if}>名片识别-思汉-服务商：厦门思汉信息科技有限公司</label>
              <label class="radio-inline"><input type="radio"  name="AppCodek" value="4" {if $deat['AppCodek'] == 4 }checked{/if}>名片识别-服务商：北京中安未来科技有限公司</label>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">小程序appid</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="appid" name="appid"  class="form-control" value="{$deat['appid']}"/>
              <div class="help-block"></div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">小程序appsecret</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="appsecret" name="appsecret"  class="form-control" value="{$deat['appsecret']}"/>
              <div class="help-block"></div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">小程序商户号</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="mchid" name="mchid"  class="form-control" value="{$deat['mchid']}"/>
              <div class="help-block"></div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">小程序商户号秘钥</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="wxkey" name="wxkey"  class="form-control" value="{$deat['wxkey']}"/>
              <div class="help-block"><span style="color: red">以上四处是小程序的重要参数必须认真填写，三四是支付用的</span></div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">分享点击转换金额数</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="share_money" name="share_money"  class="form-control" value="{$deat['share_money']}"/>
              <div class="help-block">分享后被一个人点开后所增加的金额数（单位元），一个积分兑换的金额</div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span class="require"></span>是否允许手动输入手机号码</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <label class="radio-inline"><input type="radio"  name="mobileto" value="1" {if $deat['mobileto'] == 1 || $deat['mobileto']}checked {/if}>允许</label>
              <label class="radio-inline"><input type="radio"  name="mobileto" value="0" {if $deat['mobileto'] == 0 }checked {/if}>不允许</label>
              <div class="help-block">控制手机端基本信息的手机号码能否手工输入</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span class="require">*</span>切换客服方式</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <label class="radio-inline"><input type="radio"  name="service" value="0" {if $deat['service'] == 0|| $deat['service']}checked{/if}>微信客服</label>
              <label class="radio-inline"><input type="radio"  name="service" value="1" {if $deat['service'] == 1 }checked{/if}>电话客服</label>
              <div class="help-block">微信客服需要小程序后台必要设置</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span class="require">*</span>是否开启首页客服</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <label class="radio-inline"><input type="radio"  name="home_service" value="0" {if $deat['home_service'] == 0|| $deat['home_service']}checked{/if}>开启</label>
              <label class="radio-inline"><input type="radio"  name="home_service" value="1" {if $deat['home_service'] == 1 }checked{/if}>关闭</label>
              <div class="help-block">开启小程序首页显示 </div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span class="require">*</span>新建或修改名片审核开关</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <label class="radio-inline"><input type="radio"  name="to_examine" value="1" {if $deat['to_examine'] == 1|| $deat['to_examine']}checked{/if}>开启</label>
              <label class="radio-inline"><input type="radio"  name="to_examine" value="0" {if $deat['to_examine'] == 0 }checked{/if}>关闭</label>
              <div class="help-block">开启后创建和修改名片都要经过审核才能正常显示</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span class="require">*</span>文字广告审核开关</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <label class="radio-inline"><input type="radio"  name="gun_key" value="1" {if $deat['gun_key'] == 1|| $deat['gun_key']}checked{/if}>开启</label>
              <label class="radio-inline"><input type="radio"  name="gun_key" value="0" {if $deat['gun_key'] == 0 }checked{/if}>关闭</label>
              <div class="help-block">开启后文字广告经过审核才能正常显示</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label"><span style='color:red'>*</span> 交换名片提示音URL</label>
            <div class="col-sm-9 col-xs-12">
              {php echo tpl_form_field_audio('audio',$deat['audio'])}
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">分享抬头文字（前）</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="fxtext" placeholder="快来创建属于自己名片吧！这是" name="fxtext"  class="form-control" value="{$deat['fxtext']}"/>
              <div class="help-block">分享名片时，上部抬头文字（后面是用户的姓名）</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">分享抬头文字（后）</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="fxtexth" placeholder="的名片！请惠存！"  name="fxtexth"  class="form-control" value="{$deat['fxtexth']}"/>
              <div class="help-block">分享名片时，上部抬头文字（前面是用户的姓名）</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">首页提示分享按钮文字</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="shtexth" placeholder="点击分享可排名提前和增加积分哦！"  name="shtexth"  class="form-control" value="{$deat['shtexth']}"/>
              <div class="help-block">须控制字数</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">公司自定义名称</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="z_company" placeholder="公司"  name="z_company"  class="form-control" value="{$deat['z_company']}"/>
              <div class="help-block">须控制字数</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">职务自定义名称</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="z_job" placeholder="职务"  name="z_job"  class="form-control" value="{$deat['z_job']}"/>
              <div class="help-block">须控制字数</div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">行业自定义名称</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <input type="text" id="z_indus" placeholder="行业"  name="z_indus"  class="form-control" value="{$deat['z_indus']}"/>
              <div class="help-block">须控制字数</div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">如何使用名片</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <TEXTAREA class="form-control" placeholder="如何使用名片" name="explaina">{$deat['explaina']}</TEXTAREA>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">如何使用通讯录</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <TEXTAREA class="form-control" placeholder="如何使用通讯录" name="explainb">{$deat['explainb']}</TEXTAREA>
            </div>
          </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-4 col-md-3 control-label">如何使用个人中心功能</label>
            <div class="col-sm-9 col-xs-9 col-md-7 col-xs-12">
              <TEXTAREA class="form-control" placeholder="如何使用个人中心功能" name="explainc">{$deat['explainc']}</TEXTAREA>
            </div>
          </div>
        </div>

      </div>
      <div class="form-group col-sm-12">

        <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />

        <input type="hidden" name="token" value="{$_W['token']}" />

      </div>

  </form>

    </div>


    {template 'common/footer'}
